export default {

  namespaced: true,//将小仓库封闭，避免命名冲突
  state: {
    token: localStorage.getItem('token') ? localStorage.getItem('token') : ''
  },
  mutations: {
    setToken(state,newtoken){
      state.token = newtoken//更新
      localStorage.setItem('token',newtoken)
    }
  },
  actions: {}
}
